home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
DDJ0992.ARJ
/
SALTER.LS2
< prev
next >
Wrap
INI File
|
1992-06-09
|
4KB
|
180 lines
[LISTING TWO]
; psequate.inc - a subset of standard periscope equates
; interrupt equates
int0 equ 0*4 ; divide by zero
int1 equ 1*4 ; trap
int2 equ 2*4 ; nmi
int3 equ 3*4 ; breakpoint
int4 equ 4*4 ; into
int5 equ 5*4 ; print screen
int6 equ 6*4 ; at illegal opcode
int8 equ 8*4 ; irq 0 - timer tick
int9 equ 9*4 ; irq 1 - keyboard
int0a equ 0ah*4 ; irq 2
int0b equ 0bh*4 ; irq 3 - com 2
int0c equ 0ch*4 ; irq 4 - com 1
int0d equ 0dh*4 ; irq 5 - segment wrap
int0e equ 0eh*4 ; irq 6
int0f equ 0fh*4 ; irq 7
int10 equ 10h*4 ; video
int11 equ 11h*4 ; equipment check
int13 equ 13h*4 ; diskette
int15 equ 15h*4 ; sys req
int16 equ 16h*4 ; keyboard data
int19 equ 19h*4 ; short boot
int1c equ 1ch*4 ; user timer tick
int1e equ 1eh*4 ; diskette parms
int21 equ 21h*4 ; dos services
int25 equ 25h*4 ; abs read
int26 equ 26h*4 ; abs write
int28 equ 28h*4 ; dos idle
int2f equ 2fh*4 ; dos multiplex
int31 equ 31h*4 ; dpmi
int40 equ 40h*4 ; alt diskette int
int41 equ 41h*4 ; used by enhanced mode Windows
int43 equ 43h*4 ; ega save
int60 equ 60h*4 ; start of user ints
; character-building equates
ctrlbreak equ 0 ; ctrl-break
ctrla equ 1 ; ctrl-a
ctrlb equ 2 ; ctrl-b
ctrlc equ 3 ; ctrl-c
ctrld equ 4 ; ctrl-d
ctrle equ 5 ; ctrl-e
ctrlf equ 6 ; ctrl-f
ctrlg equ 7 ; ctrl-g
ctrlh equ 8 ; ctrl-h
ctrli equ 9 ; ctrl-i
ctrlj equ 0ah ; ctrl-j
ctrlk equ 0bh ; ctrl-k
ctrll equ 0ch ; ctrl-l
ctrlm equ 0dh ; ctrl-m
ctrln equ 0eh ; ctrl-n
ctrlo equ 0fh ; ctrl-o
ctrlp equ 10h ; ctrl-p
ctrlq equ 11h ; ctrl-q
ctrlr equ 12h ; ctrl-r
ctrls equ 13h ; ctrl-s
ctrlt equ 14h ; ctrl-t
ctrlu equ 15h ; ctrl-u
ctrlv equ 16h ; ctrl-v
ctrlw equ 17h ; ctrl-w
ctrlx equ 18h ; ctrl-x
ctrly equ 19h ; ctrl-y
ctrlz equ 1ah ; ctrl-z
; ascii control characters
nul equ 00
soh equ 01
stx equ 02
etx equ 03
eot equ 04
enq equ 05
ack equ 06
bel equ 07
backsp equ 08
tab equ 09
lf equ 10
ff equ 12
cr equ 13
dle equ 16
dc1 equ 17
dc2 equ 18
dc3 equ 19
dc4 equ 20
nak equ 21
can equ 24
eof equ 26
escape equ 27
space equ ' ' ; space
addrsep equ '&' ; separator for 32-bit addresses
addrsepv equ '|' ; separator for v86 addresses
comma equ ',' ; comma
colon equ ':' ; colon
stile equ '|' ; stile
; port equates
eoi equ 20h ; end of interrupt
eoi2 equ 0a0h ; 2nd 8259 (AT only)
kbdata equ 60h ; keyboard data (port a)
portb equ 61h ; control port b
atkb equ 64h ; at keyboard command port
colorp equ 3d8h ; color/graphics mode-select register
nmipc equ 0a0h ; nmi enable port on PC & XT
nmiat equ 70h ; nmi enable port on AT
; bit definitions
bit00on equ 0001h
bit01on equ 0002h
bit02on equ 0004h
bit03on equ 0008h
bit04on equ 0010h
bit05on equ 0020h
bit06on equ 0040h
bit07on equ 0080h
bit08on equ 0100h
bit09on equ 0200h
bit10on equ 0400h
bit11on equ 0800h
bit12on equ 1000h
bit13on equ 2000h
bit14on equ 4000h
bit15on equ 8000h
bit16on equ 00010000h
bit17on equ 00020000h
bit18on equ 00040000h
bit19on equ 00080000h
bit20on equ 00100000h
bit21on equ 00200000h
bit22on equ 00400000h
bit23on equ 00800000h
bit24on equ 01000000h
bit25on equ 02000000h
bit26on equ 04000000h
bit27on equ 08000000h
bit28on equ 10000000h
bit29on equ 20000000h
bit30on equ 40000000h
bit31on equ 80000000h
; @save and @restore
@save macro p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12
ifidn <p1>, <all>
ifndef PUSHall
extrn PUSHall: near
endif
call PUSHall
else
irp x,<p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12>
ifnb <x>
push x
endif
endm
endif
@restore macro
ifidn <p1>, <all>
ifndef POPall
extrn POPall: near
endif
call POPall
else
irp x,<p12,p11,p10,p9,p8,p7,p6,p5,p4,p3,p2,p1>
ifnb <x>
pop x
endif
endm
endif
endm
endm